package com.ruoyi.deviceinfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 device_info
 * 
 * @author zjt
 * @date 2025-01-15
 */
public class DeviceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备号 */
    @Excel(name = "设备号")
    private Integer deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备具体型号 */
    @Excel(name = "设备具体型号")
    private String model;

    /** 设备保修期限 */
    @Excel(name = "设备保修期限")
    private String warrantyPeriod;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private Integer status;

    public void setPrice(long price) {
        this.price = price;
    }

    /**
     * 设备图片
     */
    @Excel(name = "设备图片")
    private String image;

    public long getPrice() {
        return price;
    }
    /**
     * 设备价格
     */
    @Excel(name = "设备价格")
    private long price;

    public void setDeviceId(Integer deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Integer getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setWarrantyPeriod(String warrantyPeriod) 
    {
        this.warrantyPeriod = warrantyPeriod;
    }

    public String getWarrantyPeriod() 
    {
        return warrantyPeriod;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("deviceType", getDeviceType())
            .append("model", getModel())
            .append("warrantyPeriod", getWarrantyPeriod())
            .append("status", getStatus())
                .append("image", getImage())
            .toString();
    }
}
